﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the Microsoft Public License (Ms-PL).
// See accompanying file License.txt or copy at http://mews.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Mews.Net.Nntp
{
    /// <summary>Represents a QUIT command to be sent to an NNTP server.</summary>
    internal sealed class QuitCommand : SingleLineCommand<IResponse>
    {
        private static readonly string[] successResponseCodes = { "205" };

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        internal QuitCommand() : base("QUIT", 2, successResponseCodes)
        {
        }

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>See <see cref="SingleLineCommandBase{T, U}.CreateResponse"/>.</summary>
        protected sealed override IResponse CreateResponse(ResponseStream responseStream)
        {
            return null;
        }
    }
}
